.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: confirm-fadeIn 0.2s ease-out;
}

.confirm-modal-content {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: confirm-slideIn 0.3s ease-out;
  overflow: hidden;
}

.confirm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.confirm-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.confirm-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.confirm-modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.confirm-modal-body {
  padding: 24px;
}

.confirm-message {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
  text-align: center;
}

.confirm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background-color: #fafafa;
  border-top: 1px solid #e0e0e0;
}

.btn-confirm-cancel,
.btn-confirm-delete {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-confirm-cancel {
  background-color: #f0f0f0;
  color: #333;
}

.btn-confirm-cancel:hover {
  background-color: #e0e0e0;
}

.btn-confirm-delete {
  background-color: #f55c65;
  color: white;
}

.btn-confirm-delete:hover {
  background-color: #e54c55;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 92, 101, 0.3);
}

/* 动画效果 */
@keyframes confirm-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes confirm-slideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .confirm-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .confirm-modal-header,
  .confirm-modal-body {
    padding: 16px;
  }
  
  .confirm-modal-footer {
    padding: 12px 16px;
    flex-direction: column-reverse;
  }
  
  .btn-confirm-cancel,
  .btn-confirm-delete {
    width: 100%;
    padding: 12px;
  }
  
  .confirm-modal-header h3 {
    font-size: 16px;
  }
  
  .confirm-message {
    font-size: 14px;
  }
}

/* 焦点样式 */
.btn-confirm-cancel:focus,
.btn-confirm-delete:focus,
.confirm-modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .confirm-modal-content {
    border: 2px solid #333;
  }
  
  .btn-confirm-delete {
    border: 2px solid #f55c65;
  }
  
  .btn-confirm-cancel {
    border: 2px solid #ddd;
  }
}